package com.fc.test.util.QrCode;

import com.fc.test.model.custom.PublicMsg;

public class QRCode
{


    /**
     * text 内容
     *
     * */
    public String generateTwoDimensionalCode(String text,String url,String name,String type)
    {
        String Text = ""; //内容
        String destPath = url + name + type;
        String imgPath = "C:/IMG/log.jpg";
        try
        {

            QRCodeUtil.encode(text, imgPath, destPath, true);

        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
            return "false";

        }
        return destPath;
    }


}
